//
//  Header.swift
//  QMUI_Swfit_Test
//
//  Created by Kipp Dev on 2017/10/27.
//  Copyright © 2017年 yskj. All rights reserved.
//

import Foundation
import UIKit
import RxSwift
import RxCocoa
import Kingfisher
import SwifterSwift
import Then
import IQKeyboardManagerSwift
import LYEmptyView
import TangramKit
import AttributedTextView
import Toast
import Presentr
import Material
import LGButton
import Closures

let adaptionX = Screen.width/375
let adaptionY = Screen.height/667
var windowRootViewController: UIViewController? {
    ///为避免在创建rootViewController之前调用了这个懒加载全局变量，所以写成get获取方式
    get {
        return (UIApplication.shared.delegate as! AppDelegate).window?.rootViewController
    }
}
let applicationKeyWindow = UIApplication.shared.keyWindow
let shareApplication = UIApplication.shared
let delegate = shareApplication.delegate as? AppDelegate
let imagePicker = HImagePickerUtils()//图片选择
let gcdKit = GCDKit()//各种GCD方法封装
var isLogin = Variable(false)//是否登录

let mainColor = #colorLiteral(red: 0.8039215686, green: 0.04705882353, blue: 0.05098039216, alpha: 1)
let mainTextColor = #colorLiteral(red: 0.1137254902, green: 0.1137254902, blue: 0.1137254902, alpha: 1)
let mainBackgroundColor = #colorLiteral(red: 0.9764705882, green: 0.9764705882, blue: 0.9764705882, alpha: 1)
let detailTextColor = #colorLiteral(red: 0.3725490196, green: 0.3725490196, blue: 0.3725490196, alpha: 1)
let priceColor = #colorLiteral(red: 1, green: 0.3019607843, blue: 0.3019607843, alpha: 1)

let testColor = UIColor.white
let placeholderHeadImage = #imageLiteral(resourceName: "默认头像")//默认头像图片
let placeholderImage = #imageLiteral(resourceName: "默认图片") //默认图片
let placeholderColor = UIColor.FlatUI.alizarin

let location = AppLocationData()//位置信息

let uAppKey = "5a73cda4f43e48794000010a"//分享key
let reach = Reachability.forInternetConnection()//网络监控
